/**
 * 作者：陈文斌 on 2019/1/8.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/constant/constant.dart';
import 'package:crm/view/Tile/list_tile_normal.dart';
import 'package:crm/component/ClientManager/AddContact/contact_info_edit_section.dart';
import 'package:crm/view/AppBar/custom_app_bar.dart';

const String Title = '添加联系人';

class AddContactPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _AddContactPageState();
}

class _AddContactPageState extends State<AddContactPage> {
  final TextStyle _titleStyle = TextStyle(
    color: AppColors.DetailTextColor,
    fontSize: AppFontSizes.Font15,
    fontFamily: AppFontFamilies.PingFangSC,
    fontWeight: FontWeight.w500,
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      backgroundColor: AppColors.PageBackgroundColor,
      appBar: CustomAppBar(
        title: Title,
      ),
      body: GestureDetector(
        behavior: HitTestBehavior.translucent,
        onTap: () {
          FocusScope.of(context).requestFocus(FocusNode());
        },
        child: SingleChildScrollView(
          child: Column(
            children: <Widget>[
              Padding(padding: EdgeInsets.only(top: 7)),
              ListTileNormal(
                title: Text(
                  '从辅城通讯录导入',
                  style: _titleStyle,
                ),
                onTap: () {},
              ),
              ListTileNormal(
                title: Text(
                  '从手机通讯录导入',
                  style: _titleStyle,
                ),
                onTap: () {},
              ),
              ContactsInfoEditSection(),
            ],
          ),
        ),
      ),
    );
  }
}
